package com.pipayshop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pipayshop.entity.HotelStoreOrderInfo;
import com.pipayshop.entity.vo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 实体店订单数据表 Mapper 接口
 * </p>
 *
 * @author jjf
 * @since 2023-07-29
 */
@Mapper
public interface HotelShopOrderInfoMapper extends BaseMapper<HotelStoreOrderInfo> {

    List<LiveOrderListVO> getOrderList(@Param("userId") String userId, @Param("start")Long start, @Param("size")Long size, @Param("orderStatus") List<Integer> orderStatus);
    List<LiveOrderListVO> getLiveOrderListByShopName(@Param("userId") String userId, @Param("orderStatus") List<Integer> orderStatus, @Param("commodityName") String commodityName);

    List<OrderLiveListVO> getOrderLiveList(@Param("getOrderDataVO") GetOrderDataVO getOrderDataVO);
    Integer getAllOrderLiveList(@Param("getOrderDataVO") GetOrderDataVO getOrderDataVO);

    ShopOrderDetailVO getShopOrderDetailVO(@Param("orderId") String orderId);

    Integer getOrderListCountByShopId(@Param("getOrderDataVO") GetOrderDataVO getOrderDataVO);

    List<OrderLiveListVO> getOrderLiveListByShopId(@Param("getOrderDataVO") GetOrderDataVO getOrderDataVO);

    Integer getAllOrderLiveListByShopId(@Param("getOrderDataVO") GetOrderDataVO getOrderDataVO);

    ShopLiveOrderDetailVO getLiveOrderDetail(@Param("orderId") String orderId);

    List<HotelStoreOrderInfoVO> getAllOrderByShopId(@Param("shopId") String shopId);
}
